import request from '@/api'

interface miniAppPayRequest {
  orderCode?: string
}

const payService = {
  miniAppPay: (data: miniAppPayRequest) => {
    return request.post('/ucar/wxPay/jsApiPay', data)
  },
  payNotify: (data: any) => {
    return request.post('/ucar/wxPay/payNotify', data)
  },
  rechargeRecordApiPay: (data: any) => {
    return request.post('/ucar/wxPay/rechargeRecordApiPay', data)
  },
  balancePay: (data: any) => {
    return request.post('/ucar/customer/balanceConsume', data)
  },
  withdraw:(data: any) => {
    return request.post('/ucar/wxPay/withdraw', data)
  }
}

export default payService
